#include <stdio.h>
#include "msg_queue.h"

int main(int argc, char const *argv[])
{
    struct Msg msg;
    int id = msg_queue_init(MSG_QUEUE_NAME);

    while(1)
    {
        msg_queue_recv(id, (void*)&msg, sizeof(msg.buf), MSG_QUEUE_TYPE, 0);
    
        printf("%s\n", msg.buf);

        sleep(1);
    }
    
    return 0;
}
